/** @file check_box.h
 */
#ifndef	_CHECK_BOX_H_
#define	_CHECK_BOX_H_

#include "widget.h"

typedef enum
{
    SIGNAL_CHECKBOX_CHANGED=0,
    SIGNAL_CHECKBOX_MAX
} CheckBox_signal;

class CheckBox: public Widget
{
public:
    CheckBox(HWND parent =0);
    ~CheckBox();

    void setChecked(bool state);
    bool getCheck();

    Signal signal[SIGNAL_CHECKBOX_MAX];
private:
    int state;
    int style;

    virtual void draw(Rect *r);
    virtual int eventHandler(HWND hWnd, int iMsg, WPARAM wParam, LPARAM lParam);
};


#endif



